SIMTIME = 30 us
include ./global.makefile

################################################################################
# This is the dummy directory for the timestamps
TS = ts
TOUCH = touch $@

LIBNAME = lab1
TBNAME = cfg_tb

LIB_SRC    = ./${LIBNAME}

LIB_OBJ    = ../obj/${TOOLSET}/${LIBNAME}

LIB_OBJ_VHDL = ${LIB_OBJ}/scs
LIB_OBJ_VERILOG = ${LIB_OBJ}/scs
TSDIR = ${LIB_OBJ}/${TS}

###############################

do_all: ${TSDIR}  model 

${TSDIR} : ../obj/${TOOLSET}/${TS}/${TOOLSET} ../obj/${TOOLSET}/${TS}/${LIBNAME} 

../obj/${TOOLSET}/${TS}/${TOOLSET}: 
	 mkdir ../obj/${TOOLSET}
	 ${MKWORK}
	 mkdir ../obj/${TOOLSET}/${TS}
	 ${TOUCH}

../obj/${TOOLSET}/${TS}/${LIBNAME}:
	${MKLIB}
	 mkdir ${LIB_OBJ}/${TS}
	 ${TOUCH}

dosim:  
	${SIM}

dosimi:  
	${SIMI}


scsim:	${LIB_OBJ}/${TS}/scsim



model: 	${LIB_OBJ}/${TS}/dlatch.vhd 

################################################################################
# THE UPDATE RULES
################################################################################


#-------------------------------------------------------------------------------
# ENTITY dlatch
${LIB_OBJ}/${TS}/dlatch.vhd: ${LIB_SRC}/dlatch.vhd 
	${COMPILER}
	${TOUCH}
#-------------------------------------------------------------------------------

